import java.util.Scanner;

public class Test2 {
    public static void main(String[] args) {
        System.out.println("你输入用户购物金额");
        Scanner sc = new Scanner(System.in);
        int price = sc.nextInt();
        System.out.println("输入用户与发货地距离");
        int distance = sc.nextInt();
        int price1 = 0;
        if (distance>0 && distance<10){
            price1 = 10;
            System.out.println("总价格为:"+(price+price1));
        }else if(distance>11 && distance<50) {
            price1 = 50;
            System.out.println("总价格为:"+(price+price1));
        }else if(distance>51 && distance<100){
            price1 = 100;
            System.out.println("总价格为:"+(price+price1));
        }else {
            price1 =200;
            System.out.println("总价格为:"+(price+price1));
        }



    }
}
